import { connect } from '../utils/mongoose.server';
import '../utils/env.server'; // 确保环境变量优先加载

export default defineNitroPlugin(async () => {
  // nitro应用加载时加载数据库
  await connect();
});
